#pragma once 

#define FILE_MODE 0666
#define SIZE 1024

typedef struct IN_FILE
{
    int fileno;
    int flag;
    
    //char inbuffer[SIZE];
    //int inpos;
    
    char outbuffer[SIZE];
    int outpos;
}_FILE;


_FILE* _fopen(const char* filename, const char* mode);
int _fwrite(_FILE* fp, const char* s, int len);
void _fclose(_FILE* fp);

#define FLUSH_NOW 0
#define FLUSH_LINE 2
#define FLUSH_ALL 4
